package com.example.ai.config;



import com.volcengine.service.visual.IVisualService;
import com.volcengine.service.visual.impl.VisualServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class VolcEngineConfig {

    private static final String ACCESS_KEY = "AKLTMDBkZDRkZTZiZTBmNGU5YWI1ZGFjMWI3ODdmOGE4ZjQ";
    private static final String SECRET_KEY = "TkRBMU9HRXpaREF4WWpsbU5ETm1Oamd6WldFeE1XWTNaVEZoTVRKa05qVQ==";

    @Bean
    public IVisualService visualService() {
        IVisualService instance = VisualServiceImpl.getInstance();
        instance.setAccessKey(ACCESS_KEY);
        instance.setSecretKey(SECRET_KEY);
        return instance;
    }


}
